package month3.day29;

public class Jiance {
    private String dianhua;
    private String dizhi;

    public Jiance(String dianhua, String dizhi) {
        this.dianhua = dianhua;
        this.dizhi = dizhi;
    }

    public String getDianhua() {
        return dianhua;
    }

    public void setDianhua(String dianhua) {
        this.dianhua = dianhua;
    }

    public String getDizhi() {
        return dizhi;
    }

    public void setDizhi(String dizhi) {
        this.dizhi = dizhi;
    }
    public void jianche(Car c){
        c.show();
        c.qidon();
        c.jiasu();
        c.shache();
//        if(c instanceof Wuling){
//            Wuling wuling=(Wuling) c;
//            wuling.lahuo();
//        }
    }
}
